//package com.hwbsite.hwbback.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//
//import jakarta.annotation.Resource;
//import java.util.List;
//
//@Configuration
//@EnableResourceServer
//public class ResourceServerConfiguration  extends ResourceServerConfigurerAdapter {
//
//    @Resource
//    private OauthIgnore oauthIgnore;
//
//    @Override
//    public void configure(HttpSecurity http) throws Exception {
//        List<String> urls = oauthIgnore.getUrls();
//
//        http.authorizeRequests()
//                .antMatchers(urls.toArray(new String[urls.size()])).permitAll()
//                .anyRequest().authenticated()
//                .and().csrf().disable();
//    }
//}
